package com.lab303.powerproject.service;

import com.lab303.powerproject.entity.Relationship;
import com.lab303.powerproject.pojo.CustomRelationshipObject;

import java.util.List;
import java.util.Map;

public interface RelationshipService {

    void saveRelationshipList(List list);

    List findRelationshipByFrom(Integer deviceFrom);

    public List findAllRelationship();

    void deleteRelationshipById(Integer relId);

    List findCustomRelationship(Integer deviceId);

    List findCustomRelationshipList();

    List<Map> getAllEdge();

    List<Map> getEdgeByGraphId(Integer graphId);

    List<CustomRelationshipObject> findCustomRelationshipListByGraphId(Integer graphId);

    boolean checkDuplicateRelationship(Relationship relationship);

    Relationship findRelationshipById(Integer id);

    Relationship updateRelationship(Relationship relationship);

    Relationship findRelationshipByFromAndToAndGraphId(Relationship relationship);

    List getRelationshipListByGraphId(Integer graphId);

    void deleteRelationshipByGraphId(Integer graphId);

    void deleteRelationshipOfDevice(Integer deviceId);

    boolean checkStgyCode(String stgyCode);
}
